package com.bng8.superstar_cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bng8.superstar_cms.domain.dto.SupChallengerDTO;
import com.bng8.superstar_cms.domain.entity.SupChallengerDO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 20393
 * @description 针对表【sup_challenger(挑战者表)】的数据库操作Service
 * @createDate 2023-08-17 11:22:14
 */
public interface SupChallengerService extends IService<SupChallengerDO> {
    /**
     * 新增挑战者
     *
     * @param request
     * @param challengerDTO
     * @return
     */
    int save(HttpServletRequest request, SupChallengerDTO challengerDTO);

    /**
     * 逻辑删除
     *
     * @param request
     * @param id
     * @return
     */
    int deleter(HttpServletRequest request, Long id);

    List<SupChallengerDTO> queryChallengerByUserId();
}
